<%-- 
    Document   : adduser
    Created on : Jan 8, 2012, 1:37:49 AM
    Author     : TrieuNX
--%>

<%@include file="prelude.jsp" %>
<div id="main">
    <%@include file="adminHeader.jsp" %>
    <div id="middle" >
        <%@include file="adminMenu.jsp" %>
        <div id="center-column">
            <div class="top-bar">

                <h1>Contents</h1>
                <div class="breadcrumbs"><a href="#">Administrator</a> /<a href="#">Manage User</a> / <a href="#">Add User</a></div>
            </div><br />

            <form action="/admin/doAddUser.htm" method="post">
                <div>
                    <s:actionerror></s:actionerror>
                </div>
                <div class="table">
                    <img src="img/bg-th-left.gif" width="8" height="7" alt="" class="left" />
                    <img src="img/bg-th-right.gif" width="7" height="7" alt="" class="right" />

                    <table class="listing form" cellpadding="0" cellspacing="0" width="600px!impotant">
                        <tr>
                            <th class="full" colspan="3">Information</th>
                        </tr>
                        <tr class="bg">
                            <td class="first" width="150"><s:text name="user.username" ></s:text></td>
                            <td><input type="text" class="text" name="username" /></td>
                            <td class="last" width="120"><s:fielderror name="username" fieldName="username"/></td>

                        </tr>
                        <tr>
                            <td class="first" width="150"><s:text name="user.password" ></s:text></td>
                            <td><input type="password" class="text" name="password" /></td>
                            <td class="last" width="120"><s:fielderror name="password" fieldName="password" /></td>

                        </tr>
                        <tr class="bg">
                            <td class="first" width="150"><s:text name="user.firstname" ></s:text></td>
                            <td><input type="text" class="text" name="firstname" /></td>
                            <td class="last" width="120"></td>
                        </tr>
                        <tr>
                            <td class="first" width="150"><s:text name="user.lastname" ></s:text></td>

                            <td><input type="text" class="text" name="lastname" /></td>
                            <td class="last" width="120"></td>
                        </tr>
                        <tr class="bg">
                            <td class="first" width="150"><s:text name="user.email" ></s:text></td>
                            <td><input type="text" class="text" name="email" /> </td>
                            <td class="last" width="120"><s:fielderror name="email" fieldName="email"/></td>
                        </tr>  
                        <tr class="bg">
                            <td class="first" width="150"><s:text name="user.role" ></s:text></td>

                            <td>
                                <select name="roleId">
                                    <option value="1">Administrator</option>
                                    <option value="2">Operator</option>
                                    <option value="3">Reporter</option>
                                </select>    
                            </td>
                            <td class="last" width="120"></td>
                        </tr>
                        <tr >

                            <td  colspan="3" style="text-align: center" >
                                <input type="submit" value="Create" onclick="return confirm('Do you want to create this user')"/>
                                <input type="button" value="Cacel" style="margin-left:100px" onclick="document.location='/admin/manageUser.htm'">

                            </td>
                        </tr>
                    </table>
                </div>
            </form>


        </div>
    </div>
    <%@include file="footer.jsp" %>
</div>